#include "wuActiveZone.h"

wuActiveZone::wuActiveZone()
{
}

wuActiveZone::~wuActiveZone()
{
}


void wuActiveZone::draw(bool bCambiazo)
{
	wuBaseControl::draw();

	if(!bCambiazo)
	{
		ofFill();
		ofSetColor(255,255,0);
		for(int i=0; i< touchPts.size(); i++)
			ofCircle(touchPts[i].x, touchPts[i].y, 10);

		ofSetColor(255,255,255);
	}
}

void wuActiveZone::touch(vector <ofPoint> * _fingerList)
{
	touchPts.clear();

	for(int i=0; i< _fingerList->size(); i++)
	{
		if(rect.inside((*_fingerList)[i]))
		{
			ofPoint touchpt;
			touchpt = (*_fingerList)[i];
			touchPts.push_back(touchpt);
		}
	}

}

